package com.study.dynamic.dao.mapper;

import com.study.dynamic.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.BaseMapper;

/**
 * @author Mayjean
 * @Date2020/9/9
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    /**
     * 通过userId查询
     * @param userId
     * @return
     */
    @Select("select * from ti_user where use_id=#{userId} limit 1")
    User getByUserId(@Param("userId")String userId);

}